package com.fifth.apartment.entity;

import cn.hutool.core.date.DateTime;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;

/**
 * TODO
 *
 * @author Dao
 * @since 2024/7/4
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
@ApiModel("合同表")
public class Contract {
    @TableId(type = IdType.AUTO)
    @ApiModelProperty("合同编号")
    private Integer id;

    @TableField("c_name")
    @ApiModelProperty("合同名称")
    private String cName;

    @TableField("signing_time")
    @ApiModelProperty("签订时间")
    private Date signingTime;

    @TableField("signed_people")
    @ApiModelProperty("签订人")
    private String signedPeople;

    @TableField("deadline")
    @ApiModelProperty("截止时间")
    private Date deadline;

    @TableField("contract_status")
    @ApiModelProperty("合同状态")
    private String contractStatus;

    @TableField("update_time")
    @ApiModelProperty("更新时间")
    private Date updateTime;

    @TableField("rental_scheme")
    @ApiModelProperty("租住方案")
    private String rentalScheme;

    @TableField("rent")
    @ApiModelProperty("租金")
    private int rent;

    @TableField("start_time")
    @ApiModelProperty("开始时间")
    private Date startTime;

    @TableField("inforcing")
    @ApiModelProperty("生效时间")
    private Date inforcing;

    @TableField("img")
    @ApiModelProperty("合同图片")
    private String img;
}
